package com.itzhouwei.rpc.client;

/**
 * @description:
 * @author：zw，微信：yingshengzw
 * @date: 2023/10/28 19:41
 * @Copyright： 公众号：搬砖暗夜码农 | 博客：https://itzhouwei.com - 沉淀、分享、成长，让自己和他人都能有所收获！
 */
public class RpcClient {

    private String serverAddress;

    private long timeout;


    public void  initClient(String serverAddress,long timeout){
        this.timeout=timeout;
        this.serverAddress=serverAddress;
        connect();

    }

    private void  connect(){
        RpcConnectManager.getInstance().connect(serverAddress);
    }

    private void stop(){
        RpcConnectManager.getInstance().stop();
    }

}
